﻿using System;

namespace enyo
{
    public class Video : Control
    {
        /// <summary>
        /// Source URL of the video file. Can be relative to the application's HTML file.
        /// </summary>
        public string Src { get; set; }

        /// <summary>
        /// If true, shows controls for starting and stopping video playback.
        /// </summary>
        public bool ShowControls { get; set; }

        /// <summary>
        /// If true, video playback starts automatically.
        /// </summary>
        public bool Autoplay { get; set; }

        /// <summary>
        /// If true, when video playback finishes, it restarts from the beginning.
        /// </summary>
        public bool Loop { get; set; }

        /// <summary>
        /// (webOS only) If true, stretches the video to fill the entire window.
        /// </summary>
        public bool FitToWindow { get; set; }


        /// <summary>
        /// Pauses (or, if already paused, resumes) video playback.
        /// </summary>
        public void Pause()
        {
        }

        /// <summary>
        /// Begins (or, if paused, resumes) video playback.
        /// </summary>
        public void Play()
        {
        }
    }
}
